{% extends "toast/base.template.html" %}
{% load toast_filters %}


{% block breadcrumbs %}
	<li><a href="/toast/participation_type/">Participation Types</a> <span class="divider">/</span></li>
	<li><a href="/toast/participation_type/view/{{ participation_type.id }}">{{ participation_type.name|ucwords }}</a> <span class="divider">/</span></li>
	<li class="active">Edit</li>
{% endblock %}


{% block sidecontent %}
	<div class="btn-toolbar">
		<div class="btn-group">
			<a class="btn" href="/toast/participation_type/view/{{ participation_type.id }}">View</a>
			<a class="btn active" href="/toast/participation_type/edit/{{ participation_type.id }}">Edit</a>
			<a class="btn confirm" href="/toast/participation_type/delete/{{ participation_type.id }}" message="Are you sure you want to delete {{ participation_type.name }}?">Delete</a>
		</div>
	</div>
{% endblock %}


{% block content %}
	<form method="POST">
	{% csrf_token %}
		<h6>{{ form.name.label }}</h6>
		{{ form.name }}
		<p class="text-error">{{ form.name.errors.as_text }}</p>

		<h6>{{ form.description.label }}</h6>
		{{ form.description }}
		<p class="text-error">{{ form.description.errors.as_text }}</p>

		<input class="btn btn-primary" type="submit" name="participation_type_edit" value="Save Changes" />
	</form>
{% endblock %}